import TabsView from '@/layouts/tabs/TabsView'
import BlankView from '@/layouts/BlankView'
import PageView from '@/layouts/PageView'

// 路由配置
const options = {
  routes: [
    {
      path: '/login',
      name: '登录页',
      component: () => import('@/pages/login'),
    },
    {
      path: '*',
      name: '404',
      component: () => import('@/pages/exception/404'),
    },
    {
      path: '/403',
      name: '403',
      component: () => import('@/pages/exception/403'),
    },
    {
      path: '/',
      name: '首页',
      component: TabsView,
      redirect: '/login',
      children: [
        {
          path: 'workplace',
          name: '工作台',
          meta: {
            page: {
              closable: false,
            },
          },
          component: () => import('@/pages/workplace'),
        },
        {
          path: 'dashboard',
          name: 'Dashboard',
          meta: {
            icon: 'dashboard',
          },
          component: BlankView,
          children: [
            {
              path: 'analysis',
              name: '系统统计',
              component: () => import('@/pages/dashboard/analysis'),
            },
          ],
        },
        {
          path: 'systemConfig',
          name: '系统配置',
          meta: {
            icon: 'check-circle-o',
          },
          component: BlankView,
          children: [
            {
              path: 'authorityManagement',
              name: '权限管理',
              component: () =>
                import('@/pages/systemConfig/authorityManagement'),
            },
            {
              path: 'contractingSubjectManagement',
              name: '签约主体管理',
              component: () =>
                import('@/pages/systemConfig/contractingSubjectManagement'),
            },
            {
              path: 'contractManagement',
              name: '合同模板管理',
              component: () =>
                import('@/pages/systemConfig/contractManagement'),
            },
            {
              path: 'enterpriseAccountManagement',
              name: '企业端账号管理',
              component: () =>
                import('@/pages/systemConfig/enterpriseAccountManagement'),
            },
          ],
        },
        {
          path: 'employeeManagement',
          name: '雇员管理',
          meta: {
            icon: 'idcard',
          },
          component: BlankView,
          children: [
            {
              path: 'employeeCenter',
              name: '雇员中心',
              component: () => import('@/pages/quickEntry/employeeCenter'),
            },
            {
              path: 'employeeBatchProcessing',
              name: '员工批量处理',
              component: () =>
                import('@/pages/quickEntry/employeeBatchProcessing'),
            },
          ],
        },
        {
          path: 'projectManagement',
          name: '项目管理',
          meta: {
            icon: 'project',
          },
          component: BlankView,
          children: [
            {
              path: 'projectCenter',
              name: '项目中心',
              component: () =>
                import('@/pages/projectManagement/projectCenter'),
            },
          ],
        },
        {
          path: 'socialSecurityFund',
          name: '社保公积金',
          meta: {
            icon: 'profile',
          },
          component: BlankView,
          children: [
            {
              path: 'insuredManage',
              name: '参保人管理',
              icon: 'check-circle-o',
              component: () => import('@/pages/socialSecurityFund/tabs/tab1'),
            },
            {
              path: 'policyLibrary',
              name: '政策库',
              icon: 'check-circle-o',
              component: () => import('@/pages/socialSecurityFund/tabs/tab2'),
            },
            {
              path: 'supplier',
              name: '供应商',
              icon: 'check-circle-o',
              component: () => import('@/pages/socialSecurityFund/tabs/tab3'),
            },
            {
              path: 'bill',
              name: '实缴账单明细',
              icon: 'check-circle-o',
              component: () => import('@/pages/socialSecurityFund/tabs/tab4'),
            },
            {
              path: 'billDetail',
              name: '账单详情',
              icon: 'check-circle-o',
              component: () => import('@/pages/socialSecurityFund/billDetail'),
            },
          ],
        },
        {
          path: 'todoOrder',
          name: '工单',
          meta: {
            icon: 'check-circle-o',
          },
          component: BlankView,
          children: [
            {
              path: 'orderList',
              name: '工单列表',
              component: () => import('@/pages/todoOrder/orderList'),
            },
          ],
        },
        {
          path: 'laborDisputes',
          name: '劳资纠纷',
          meta: {
            icon: 'money-collect',
          },
          component: BlankView,
          children: [
            {
              path: 'laborDisputes',
              name: '劳资纠纷管理',
              component: () =>
                import('@/pages/laborDisputes/laborDisputesManagement'),
            },
          ],
        },
        {
          path: 'taxManagement',
          name: '个税管理',
          meta: {
            icon: 'calculator',
          },
          component: BlankView,
          children: [
            {
              path: 'comprehensiveReport',
              name: '综合所得申报',
              component: () =>
                import('@/pages/taxManagement/comprehensiveReport'),
            },
            {
              path: 'payPrincipal',
              name: '缴纳主体',
              component: () => import('@/pages/taxManagement/payPrincipal'),
            },
            {
              path: 'taxPayerInfo',
              name: '缴税人员信息',
              component: () => import('@/pages/taxManagement/taxPayerInfo'),
            },
            {
              path: 'taxPaymentRecords',
              name: '个税缴纳记录',
              component: () =>
                import('@/pages/taxManagement/taxPaymentRecords'),
            },
          ],
        },
        {
          path: 'approvalManagement',
          name: '审批管理',
          meta: {
            icon: 'calculator',
          },
          component: BlankView,
          children: [
            {
              path: 'initiateMine',
              name: '我发起的',
              component: () =>
                import('@/pages/approvalManagement/initiateMine'),
            },
            {
              path: 'approvalMine',
              name: '我审批的',
              component: () =>
                import('@/pages/approvalManagement/approvalMine'),
            },
          ],
        },
        {
          path: 'echarts',
          name: 'echarts',
          meta: {
            icon: 'check-circle-o',
          },
          component: BlankView,
          children: [
            {
              name: 'bar',
              path: '/echarts/bar',
              component: () => import('@/pages/echarts/bar/index'),
              meta: { title: '柱状图' },
            },
            {
              name: 'line',
              path: '/echarts/line',
              component: () => import('@/pages/echarts/line/index'),
              meta: { title: '折线图' },
            },
            {
              name: 'pie',
              path: '/echarts/pie',
              component: () => import('@/pages/echarts/pie/index'),
              meta: { title: '饼图' },
            },
            {
              name: 'graph',
              path: '/echarts/graph',
              component: () => import('@/pages/echarts/graph/index'),
              meta: {
                title: '关系图',
              },
            },
            {
              name: 'map',
              path: '/echarts/map',
              component: () => import('@/pages/echarts/map/index'),
              meta: {
                title: '地图',
              },
            },
            {
              name: 'other',
              path: '/echarts/other',
              component: () => import('@/pages/echarts/other/index'),
              meta: {
                title: '其他图表',
              },
            },
          ],
        },
        // {
        //   name: '验权表单',
        //   path: 'auth/form',
        //   meta: {
        //     icon: 'file-excel',
        //     authority: {
        //       permission: 'form',
        //     },
        //   },
        //   component: () => import('@/pages/form/basic'),
        // },
        // {
        //   name: 'Ant Design Vue',
        //   path: 'list',
        //   meta: {
        //     icon: 'ant-design',
        //     // link: 'https://www.antdv.com/docs/vue/introduce-cn/'
        //   },
        //   component: () => import('@/pages/list/QueryList'),
        // },
        // {
        //   name: '使用文档',
        //   path: 'document',
        //   meta: {
        //     icon: 'file-word',
        //     link: 'https://iczer.gitee.io/vue-antd-admin-docs/'
        //   }
        // }
      ],
    },
  ],
}

export default options
